package org.example.im.server.handler;

import io.netty.channel.ChannelHandlerContext;
import org.example.im.bean.protocol.CommandType;

/**
 * @author dingrui
 * @since 2022/2/12
 * @description
 */
public interface ServerHandler {

    // 策略标识
    CommandType genType();

    void channelRead(ChannelHandlerContext ctx, Object request) throws Exception;
}
